//
//  UIButton+Add.h
//  AtCar
//
//  Created by 代佳宏 on 2020/11/25.
//  Copyright © 2020 车一转. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (Add)

@property(nonatomic ,copy)void(^block)(UIButton*);

- (void)addTapBlock:(void(^)(UIButton*btn))block;

- (void)centerImageAndTitle:(float)space;
- (void)centerImageAndTitle;
- (void)rightImageAndLeftTitle:(float)space;
- (void)rightImageAndLeftTitle;
/*1蓝色字体白色背景蓝色边框 2蓝色背景白色字体 3白色字体灰色子图 4黄色边框 黄色字体 5黄色背景 白色字体*/
-(void)buttonImage:(NSInteger)index;


@end

NS_ASSUME_NONNULL_END
